package com.haixiaoke.domain;

import com.haixiaoke.common.annotation.Excel;
import com.haixiaoke.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 智能锁锁信息上报日志对象 biz_lock_info_log
 *
 * @author qixi
 * @date 2023-05-30
 */
@Data
public class LockInfoLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public static final int INFOTYPE_HEARTBEAT = 0;
    public static final int INFOTYPE_DOOR_MAGNETIC = 1;
    /**
     * id
     */
    private Long id;

    /**
     * 智能锁sn
     */
    @Excel(name = "智能锁sn")
    private String lockSn;

    /**
     * 信号强度
     */
    @Excel(name = "信号强度")
    private Integer signalStrength;

    /**
     * 电池电量
     */
    @Excel(name = "电池电量")
    private Integer battery;

    /**
     * 上报类型
     */
    @Excel(name = "上报类型", readConverterExp = "0=心跳上报,1=门磁状态变化")
    private Integer infoType;

    /**
     * 门磁标志。0位关闭，1位打开
     */
    @Excel(name = "门磁标志", readConverterExp="0=关闭,1=打开")
    private Integer gateState;

    /**
     * 品牌id
     */
    private Long brandId;

    /**
     * 品牌名称
     */
    @Excel(name = "品牌名称")
    private String brandName;

    /**
     * 型号id
     */
    private Long modelId;

    /**
     * 型号名称
     */
    @Excel(name = "型号名称")
    private String modelName;
}
